package com.example.yurpceasy.fault.tolerant;

import com.example.yurpceasy.model.RpcResponse;

import java.util.Map;

/**
 * 静默策略，当错误没发生过，返回一个空的所需对象
 */
public class FailSafeTolerantStrategy implements TolerantStrategy{
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
        return new RpcResponse();
    }
}
